import request from '@/utils/request'

// 查询易制毒-单位与管理员关联列表
export function listAdmin(query) {
  return request({
    url: '/access/admin/list',
    method: 'get',
    params: query
  })
}

// 查询易制毒-单位与管理员关联详细
export function getAdmin(unitId) {
  return request({
    url: '/access/admin/' + unitId,
    method: 'get'
  })
}

// 新增易制毒-单位与管理员关联
export function addAdmin(data) {
  return request({
    url: '/access/admin',
    method: 'post',
    data: data
  })
}

// 修改易制毒-单位与管理员关联
export function updateAdmin(data) {
  return request({
    url: '/access/admin',
    method: 'put',
    data: data
  })
}

// 删除易制毒-单位与管理员关联
export function delAdmin(unitId) {
  return request({
    url: '/access/admin/' + unitId,
    method: 'delete'
  })
}
